/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufrpe.bsi.bean;

import br.ufrpe.bsi.manegedbean.LoginManegedBean;
import java.util.Date;

/**
 *
 * @author Daniel
 */
public class Log implements java.io.Serializable{
    private static final long serialVersionUID = 1L;
    private int id;
    private String login;
    private String acao;
    private Date data=new Date();

    public Log() {
    }
    
    public Log(String acao, String dono) {
        this.acao = acao;
        this.login = dono;
    }
    
    public Log(String acao){
        this.acao = acao;
        this.login = LoginManegedBean.recuperarLogin();
    }
 
    public String getAcao() {
        return acao;
    }

    public void setAcao(String acao) {
        this.acao = acao;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public Date getData() {
        return data;
    }

    public void setData(Date data) {
        this.data = data;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    
    
}
